﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewUserInfoList.aspx.cs"
    Inherits="UserManagement_ViewUserInfoList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查看修改学员信息</title>
    <link href="../Css/ys.css" rel="Stylesheet" type="text/css" />

    <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script src="../Js/tablehover.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
           function swithTab(liId) {
               $("#tabList").find("li").each(function() { $(this).removeClass(); });
               $("#" + liId).addClass("hover");
           }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-left: 5px">
        <asp:HiddenField ID="hidId" runat="server" />
        <div class="title">
            <div class="titleLeft">
                查看学员信息</div>
        </div>
        <div id="search" class="search2">
            <table cellspacing="1" cellpadding="3" border="0">
                <tr>
                    <td class="noWrapTD">
                        请选择查找条件
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCheck" runat="server" CssClass="inp2">
                            <asp:ListItem Value="0">请选择条件</asp:ListItem>
                            <asp:ListItem Value="1">按真实名查找</asp:ListItem>
                            <asp:ListItem Value="2">按登录名查找</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:TextBox ID="TxtCheckName" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="SeacheUser" runat="server" Text="查找" OnClick="SeacheUser_Click" CssClass="button"
                            Width="60px" />
                    </td>
                    <td>
                        &nbsp; &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="添加学员" OnClick="Button1_Click" CssClass="button"
                            Width="60px" />
                    </td>
                </tr>
            </table>
        </div>
        <br class="sp3px" />
        <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="9">
                    <div id="ht">
                        <ul id="tabList">
                            <li class="hover" id="tab1"><a href="?IsPublished=1">已发布</a>
                                <li id="tab2"><a href="?IsPublished=0">待审核</a></li></ul>
                    </div>
                </td>
            </tr>
            <tr class="header">
                <td class="noWrapTD">
                    操作
                </td>
                <td class="noWrapTD">
                    学员登陆名
                </td>
                <td class="noWrapTD">
                    学员真实姓名
                </td>
                <td class="noWrapTD">
                    联系电话
                </td>
                <td class="noWrapTD">
                    邮箱
                </td>
              <%--  <td class="noWrapTD">
                    购买复习帐号
                </td>--%>
                <td class="noWrapTD">
                    使用状态
                </td>
                <td class="noWrapTD">
                    所属学校
                </td>
                <td class="noWrapTD">
                    创建时间
                </td>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound"
                OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
                        <td class="ta2">
                            <asp:LinkButton CssClass="button2" ID="btnUpdate" runat="server" CommandArgument='<%#Eval("ID")%>'
                                OnCommand="btnUpdate_Click" Text="修改信息"></asp:LinkButton>
                            <asp:LinkButton CssClass="button2" ID="btnAvailable" runat="server" CommandArgument='<%# Eval("ID")+"|"+Eval("IsAvailable")%>'
                                CommandName="SetAvailable" Text="禁用"></asp:LinkButton>
                        </td>
                        <td class="ta2">
                            <%#Eval("VU_loginname")%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("VU_realname")%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("VU_mobile")%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("VU_email")%>&nbsp;
                        </td>
                       <%-- <td class="ta2">
                            <%#Eval("IsBuyingAccount").ToString()=="1"?"否":"是"%>&nbsp;
                        </td>--%>
                        <td class="ta2">
                            <%#Eval("IsAvailable").ToString()=="True"?"可用":"禁用"%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#GetSchNameByID((int)Eval("SchoolID"))%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("create_time")%>&nbsp;
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <br class="sp3px" />
        <webdiyer:AspNetPager ID="pager" runat="server" OnPageChanged="pager_PageChanged" AlwaysShow="true"
            PageSize="20" CssClass="anpager" CurrentPageButtonClass="cpb">
        </webdiyer:AspNetPager>
        <asp:HiddenField ID="hidCoursewareIdList" runat="server" />
    </div>
    </form>
</body>
</html>
